package cn.edu.cqvie.netty;

import io.netty.util.NettyRuntime;
import io.netty.util.internal.SystemPropertyUtil;

public class Test {

    public static void main(String[] args) {


        String b = new String("abc");
//        String a = "abc";
//
//        System.out.println(a.hashCode());
//        System.out.println(b.hashCode());
//
//        System.out.println(a.equals(b));


        int DEFAULT_EVENT_LOOP_THREADS = Math.max(1, SystemPropertyUtil.getInt(
                "io.netty.eventLoopThreads", NettyRuntime.availableProcessors() * 2));
        System.out.println("-Dio.netty.eventLoopThreads: " + DEFAULT_EVENT_LOOP_THREADS);
    }
}
